<!DOCTYPE html>
<style>
div {
  width: 20px;
}
</style>
<p>This test checks no line break when dollar sign follows minus.</p>
<div>
-$21.78
</div>
<div>
-21.78
</div>

